/*
*************************************
* PocketGTT
*************************************
This file is part of PocketGTT.

PocketGTT is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

PocketGTT is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with PocketGTT.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef GTT_PREFERREDSTOP_H
#define GTT_PREFERREDSTOP_H

//#include <QObject>
#include <QDeclarativeItem>

class GTT_PreferredStop : public QObject
{
    Q_OBJECT

    Q_PROPERTY(QString stopNumber READ stopNumber WRITE setStopNumber NOTIFY onStopUpdated )
    Q_PROPERTY(QString stopName READ stopName WRITE setStopName NOTIFY onStopUpdated)
    Q_PROPERTY(QString stopStreet READ stopStreet WRITE setStopStreet NOTIFY onStopUpdated)


public:
    explicit GTT_PreferredStop(const QString &number, const QString &name, const QString &street, QObject *parent = 0);

    // functions to get and set the 3 stored Stop properties
    QString stopNumber() const;
    void setStopNumber(const QString &number);
    QString stopName() const;
    void setStopName(const QString &name);
    QString stopStreet() const;
    void setStopStreet(const QString &street);

signals:
    void onStopUpdated();


private:
    QString hidden_stopNumber;
    QString hidden_stopName;
    QString hidden_stopStreet;
    
};

#endif // GTT_PREFERREDSTOP_H
